package com.power.sifa.net.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.net.model.General_tree;
import com.power.sifa.net.model.General_tree_option;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface IGeneral_treeFeign {

    /**
     * 新增构建树
     * @param applyid
     * @param cornumber
     * @param treeBuild
     * @return
     */
    @PostMapping("/generalTree/addBuild")
    ResponseDTO addBuild(String applyid, String cornumber, @RequestBody List<General_tree> treeBuild);


    /**
     * 编辑构建树
     * @param applyid
     * @param treeBuild
     * @return
     */
    @PostMapping("/generalTree/editBuild")
    ResponseDTO editBuild(String applyid, @RequestBody List<General_tree> treeBuild);

    /**
     * 删除节点
     * @param applyid
     * @param id
     * @param treeOption
     */
    @PostMapping("/generalTree/delNode")
    ResponseDTO delNode(String applyid, String id, @RequestBody General_tree_option treeOption);

    /**
     * 保存节点
     * @param applyid
     * @param treeOption
     * @throws Exception
     */
    @PostMapping("/generalTree/saveNode")
    ResponseDTO saveNode(String applyid, @RequestBody General_tree_option treeOption);
}
